package com.cungmua.app.model.response;

import com.cungmua.app.model.BonusTransaction;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * Created by kelvin.nguyen on 7/31/14.
 */
public class BonusTransactionResponse extends CungMuaResponse{
    private List<BonusTransaction> bonusList;
    private Pager pager;

    public BonusTransactionResponse(@JsonProperty("Msg") String message, @JsonProperty("Code") int code) {
        super(message, code);
    }

    public List<BonusTransaction> getBonusList() {
        return bonusList;
    }

    @JsonProperty("Data")
    public void setBonusList(List<BonusTransaction> bonusList) {
        this.bonusList = bonusList;
    }

    public Pager getPager() {
        return pager;
    }

    @JsonProperty("Pager")
    public void setPager(Pager pager) {
        this.pager = pager;
    }

    @Override
    public List<BonusTransaction> getData() {
        return bonusList;
    }
}
